#include <iostream>
using namespace std;

int main()
{
    double sum=0;
    int n=1,k=-1;
    cin>>k;
    while(sum<=k) sum+=(1.0/n++);
    cout<<--n<<endl;
	return 0;
}



